{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang credit_strategy:admin}</h3>{template user/creditsetting-nav}
	</div>
	<div class="alert alert-info mt10">
	<span class="label label-info">{lang info:admin}</span>
	{lang credit_strategy_tip:admin}
	</div>
	<div class="setform">
		<table class="table table-striped">
        <thead>
          <tr>
            <th width="200">{lang strategy_name:admin}</th>
            <th width="200">{lang strategy_cycle:admin}</th>
            <th width="200">{lang strategy_rewardnum:admin}</th>
            <th width="200">$setting['ext_credits_1']</th>
            <th width="200">$setting['ext_credits_2']</th>
            <th width="200">$setting['ext_credits_3']</th>
            <th width="200">{lang operation:admin}</th>
          </tr> 
        </thead>
        <tbody>
        {loop $rules $key $rule}
			<tr>
			<td>{echo lang($rule['event_code'],'event')}</td>
			<td>{if $rule['cycletype']=='onetime'}{lang onetime:admin}{elseif $rule['cycletype']=='everyday'}{lang everyday:admin}{else}{lang nolimittime:admin}{/if}</td>
			<td>$rule['rewardnum']</td>
			<td>$rule['ext_credits_1']</td>
			<td>$rule['ext_credits_2']</td>
			<td>$rule['ext_credits_3']</td>
			<td><a href="{url admin/credit?type=strategy&act=edit&rid=$rule['event_id']}">{lang edit:admin}</a></td>
          	</tr>
		{/loop}
          
        </tbody>
		</table>
	</div>
</div>
{template common/contentfooter}